﻿<%@ Page Title="零件发布" Language="C#" MasterPageFile="~/masterPage/admin/SAClient.master"
    AutoEventWireup="true" CodeFile="FamilyPubFrm.aspx.cs" Inherits="SAClientWeb_FamilyPubFrm" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<script type="text/javascript">
    var uploadedFilesCount = 0;
    var isEditMode;

    function OnClientFileSelected(sender, args) {
        var currentFileName = args.get_fileName();
        var txtDate = $find("<%= textBox_familyName.ClientID %>");
        txtDate.set_value(currentFileName); 
    }

    function validateRadUpload(source, e) {
        // When the RadGrid is in Edit mode the user is not obliged to upload file.
        if (isEditMode == null || isEditMode == undefined) {
            e.IsValid = false;

            if (uploadedFilesCount > 0) {
                e.IsValid = true;
            }
        }
        isEditMode = null;
    }
            
</script>
  <table>
    <tr>
        <td>
  

    <telerik:RadMultiPage ID="tabControl_wizard" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="PageView1" runat="server">
         

               <telerik:RadWindowManager ID="Singleton" Skin="Outlook" Width="600" Height="430"
        VisibleStatusbar="false" Behaviors="Close,Move, Resize" runat="server" EnableShadow="true">
    </telerik:RadWindowManager>
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
        <table>
           <tr>
           <td valign="top" style=" width:250px">
        <telerik:RadDockZone ID="RadDockZone1" runat="server">
                            <telerik:RadDock ID="RadDock1" runat="server" Title="类别选择" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                <ContentTemplate>
                                    <telerik:RadTreeView ID="treeView_categoryList" runat="server"  Height="600px">
                                    </telerik:RadTreeView>
                                </ContentTemplate>
                            </telerik:RadDock>
         </telerik:RadDockZone>
         </td>
         <td  valign="top" style=" width:750px">
         <telerik:RadDockZone ID="RadDockZone2" runat="server">
                            <telerik:RadDock ID="RadDock2" runat="server" Title="基本信息" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="false"
                                Collapsed="false" Resizable="false" Pinned="true"  EnableDrag="false">
                                <ContentTemplate>
                                <table>
                            <tr>
                                <td>
                                    模型路径:
                                </td>
                                <td>
                                    <telerik:RadAsyncUpload ID="textBox_partPath" runat="server" MaxFileInputsCount="1" TargetFolder="~/Temporary/uploads/com"
                                        AllowedFileExtensions="ipt,iam" MaxFileSize="5120000"
                                        ReadOnlyFileInputs="true" ControlObjectsVisibility="ClearButtons" Culture="zh-CN"
                                        Localization-Select="浏览" Localization-Clear="清空" OnClientFileSelected="OnClientFileSelected">
                                    </telerik:RadAsyncUpload>
                                </td>
                                
                                <td>
                                    标准：
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="comboBox_standardList" runat="server">
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    模型名称：
                                </td>
                                <td>
                                    <telerik:RadTextBox ID="textBox_familyName" runat="server">
                                    </telerik:RadTextBox>
                                </td>
                             <td>
                                    生产厂商：
                                </td>
                                <td>
                                    <telerik:RadComboBox ID="comboBox_venderList" runat="server">
                                    </telerik:RadComboBox>
                                </td>
                               
                            </tr>
                        </table>
                                   </ContentTemplate>
                            </telerik:RadDock>
                    <telerik:RadDock ID="RadDock3" runat="server" Title="备注信息" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                <ContentTemplate>
                                     <table>
                            <tr>
                                <td>
                                    模型截图：
                                </td>
                                <td>
                                    <telerik:RadAsyncUpload ID="textBox_familyDwg" runat="server" TargetFolder="~/Temporary/uploads/com"
                                        AllowedFileExtensions="dwg" MaxFileSize="5120000"
                                        ReadOnlyFileInputs="true" ControlObjectsVisibility="ClearButtons" Culture="zh-CN"
                                        Localization-Select="浏览" Localization-Clear="清空" Width="600px">
                                    </telerik:RadAsyncUpload>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    工程截图
                                </td>
                                <td>
                                    <telerik:RadAsyncUpload ID="textBox_familyDwgPic" runat="server" MaxFileInputsCount="1"
                                        TargetFolder="~/Temporary/uploads/com" AllowedFileExtensions="jpg,bmp,gif,png"
                                        MaxFileSize="5120000" ReadOnlyFileInputs="true" ControlObjectsVisibility="ClearButtons"
                                        Culture="zh-CN" Localization-Select="浏览" Localization-Clear="清空" Width="600px">
                                    </telerik:RadAsyncUpload>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    工程图：
                                </td>
                                <td>
                                    <telerik:RadAsyncUpload ID="textBox_familyPic" runat="server" MaxFileInputsCount="1" TargetFolder="~/Temporary/uploads/com"
                                        AllowedFileExtensions="jpg,bmp,gif,png" MaxFileSize="5120000"
                                        ReadOnlyFileInputs="true" ControlObjectsVisibility="ClearButtons" Culture="zh-CN"
                                        Localization-Select="浏览" Localization-Clear="清空" Width="600px">
                                    </telerik:RadAsyncUpload>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    技术文档：
                                </td>
                                <td>
                                    <telerik:RadAsyncUpload ID="textBox_familyTechDoc" runat="server" MaxFileInputsCount="1"
                                        TargetFolder="~/Temporary/uploads/com" AllowedFileExtensions="doc,pdf,caj,txt,rar"
                                        MaxFileSize="5120000" ReadOnlyFileInputs="true" ControlObjectsVisibility="ClearButtons"
                                        Culture="zh-CN" Localization-Select="浏览" Localization-Clear="清空" Width="600px">
                                    </telerik:RadAsyncUpload>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    产品描述：
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <telerik:RadTextBox ID="richTextBox_familyDescription" runat="server" Width="650px"
                                        Height="350px" TextMode="MultiLine">
                                    </telerik:RadTextBox>
                                </td>
                            </tr>
                        </table>
                                </ContentTemplate>
                            </telerik:RadDock>
                       
         </telerik:RadDockZone>
         </td>
         </tr>
        </table>
    </telerik:RadDockLayout>
        </telerik:RadPageView>
        <telerik:RadPageView ID="PageView2" runat="server">


         <telerik:RadWindowManager ID="RadWindowManager1" Skin="Outlook" Width="600" Height="430"
        VisibleStatusbar="false" Behaviors="Close,Move, Resize" runat="server" EnableShadow="true">
    </telerik:RadWindowManager>
            <telerik:RadDockLayout ID="RadDockLayout2" runat="server">
         <table>
            <tr>
                <td valign="top" width="200px">
        <telerik:RadDockZone ID="RadDockZone4" runat="server">
        
                               <telerik:RadDock ID="RadDock4" runat="server" Title="模型参数列表" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                <ContentTemplate>
                                    <asp:Button ID="button1" runat="server" Text="提取模型参数"  />
                                    <telerik:RadTreeView ID="treeView_modelParams" runat="server"  Height="570px">
                                    </telerik:RadTreeView>
                                </ContentTemplate>
                            </telerik:RadDock>
       
        </telerik:RadDockZone>
         </td>
          <td valign="top" width="200px">
        <telerik:RadDockZone ID="RadDockZone5" runat="server">
        
                               <telerik:RadDock ID="RadDock5" runat="server" Title="Excel参数列表" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                <ContentTemplate>
                                    <asp:Button ID="button2" runat="server" Text="提取Excel参数"  />
                                    <telerik:RadTreeView ID="treeView_excelParams" runat="server"  Height="570px">
                                    </telerik:RadTreeView>
                                </ContentTemplate>
                            </telerik:RadDock>
       
        </telerik:RadDockZone>
        </td>
        <td valign="top"  style="margin-top:300px; padding:300px 0px 0px 0px" >
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/SAClient/easyicon_cn_256副本.png" />
        </td>
          <td valign="top" width="600px">
        <telerik:RadDockZone ID="RadDockZone6" runat="server">
        
                               <telerik:RadDock ID="RadDock6" runat="server" Title="设置说明" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                <ContentTemplate>
                                    仅驱动参数才可设置为自定义参数，当自定义参数属性值 为范围值时，格式为“21；20”，其中，2为默认值，1为最小值，
                                    20为最大值.属性值为自由值时.格式为
                                </ContentTemplate>
                            </telerik:RadDock>
                            <telerik:RadDock ID="RadDock7" runat="server" Title="关键参数设置" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                <ContentTemplate>
                                    <div style="width: 500px; height: 500px">
                                        <asp:GridView ID="dataGridView_paramsEditor" runat="server">
                                            <Columns>
                                                <asp:BoundField DataField="" HeaderText="用户名" ControlStyle-Height="500px" />
                                                <asp:BoundField DataField="" HeaderText="参数别名" ControlStyle-Height="500px" />
                                                <asp:CheckBoxField DataField="" HeaderText="是否定义" ControlStyle-Height="500px" />
                                                <asp:BoundField DataField="" HeaderText="属性值" ControlStyle-Height="500px" />
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div style="text-align: center;">
                                        <asp:Button ID="button_moveUp" runat="server" Text="上移" />
                                        <asp:Button ID="button_moveDown" runat="server" Text="下移" />
                                        <asp:Button ID="button_deleteKeyParam" runat="server" Text="删除" />
                                    </div>
                                </ContentTemplate>
                            </telerik:RadDock>
       
        </telerik:RadDockZone>
         </td>
         </tr>
         </table>
    </telerik:RadDockLayout>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView3" runat="server">
            <telerik:RadWindowManager ID="RadWindowManager3" Skin="Outlook" Width="600" Height="430"
        VisibleStatusbar="false" Behaviors="Close,Move, Resize" runat="server" EnableShadow="true">
            </telerik:RadWindowManager>
                 <telerik:RadDockLayout ID="RadDockLayout8" runat="server">
                  <table>
                    <tr>
                      <td valign="top" width="800px">
                         <telerik:RadDockZone ID="RadDockZone8" runat="server">
                            <telerik:RadDock ID="RadDock8" runat="server" Title="零件发布" CloseText="关闭" CollapseText="收起"
                                        DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                        Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false" height="600px" >
                                 <ContentTemplate>
                                     <asp:GridView ID="dataGridView_familyTable" runat="server">
                                     </asp:GridView>
                                  </ContentTemplate>
                             </telerik:RadDock>
                           </telerik:RadDockZone>
                         </td>
                      </tr>
                     </table>
                               
               </telerik:RadDockLayout>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    </td>
    </tr>
    <tr>
        <td  style="text-align: center;">
        <asp:Button ID="button_wizardPrevious" runat="server" Text="<上一步" Enabled="false"
            OnClick="button_wizardPrevious_Click" />
        <asp:Button ID="button_wizardNext" runat="server" Text="下一步>" OnClick="button_wizardNext_Click" />
        <asp:Button ID="button_done" runat="server" Text="退出" />
        <asp:Button ID="button_publish" runat="server" Text="发布" Visible="false" OnClick="button_publish_Click" />
   
    </td>
    </tr>
    </table>
</asp:Content>
